home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / tasksel / info / desktop.preinst next >
Encoding:
Text File  |  2007-03-14  |  629 b   |  16 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # None of these packages are strictly needed, but they make X
  5. # autoconfiguration work better. Need to install them before X is
  6. # preconfigured. Note that they are also listed as part of the task, which
  7. # will take care of their removal when the task is removed.
  8. # We also install the X server early on so that other packages (e.g.
  9. # usplash) can get at the resolution it configures.
  10. for pkg in discover1 xresprobe xserver-xorg; do
  11.     if apt-cache show "$pkg" >/dev/null 2>&1 &&
  12.        ! dpkg --get-selections | egrep "^$pkg[[:space:]]+install"; then
  13.         apt-get "$@" -q -y -f install $pkg >/dev/null || true
  14.     fi
  15. done
  16.